package com.sca.bussiness.job;

import com.sca.bussiness.entity.AbstractScheduleJob;
import com.sca.bussiness.feign.OrderFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Map;

/**
 * @author liuxianfei
 * @since 2020/11/20 12:17
 */
@Slf4j
@Component
public class OrderCancelJob extends AbstractScheduleJob {

    @Autowired
    private OrderFeignClient orderFeignClient;

    @Override
    protected void execute(Map<String, Serializable> params) {
        Integer orderId = (Integer) params.get("orderId");
        log.debug("order cancel, [orderId:{}]", orderId);
    }

}
